package org.myspringframework.test.event;

import lombok.Data;
import org.myspringframework.context.event.ApplicationContextEvent;
import org.myspringframework.context.event.ApplicationEvent;


public class MyEvent extends ApplicationContextEvent {
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    private Integer id;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    private String msg;
    public MyEvent(Object source, Integer id, String message) {
        super(source);
        this.id = id;
        this.msg = message;
    }
}
